﻿using ArtMath.Component.Line;
using ArtMath.Attribute;
using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace ArtMath.Component.Manager
{
    /// <summary>
    /// 角平分线
    /// </summary>
    [Serializable]
    public class AngleBisector : AngleNDivider
    {
        public AngleBisector(SketchPad pad, string name, StraightLineBase start, StraightLineBase end, bool addToList = true) : base(pad, name, ToolTypeName.jpfx, start, end, 2, addToList)
        {

        }
        //[Browsable(false)]
        //public override int DivideCount
        //{
        //    get
        //    {
        //        return base.DivideCount;
        //    }

        //    set
        //    {
        //        base.DivideCount = value;
        //    }
        //}
        [Browsable(false)]
        public override List<AngleDividerRay> Lines
        {
            get
            {
                return base.Lines;
            }
        }
        [MultilingualCategory("Parameter"), MultilingualDisplayName("DivisionRay")]
        public AngleDividerRay DivisionRay
        {
            get { return Lines[0]; }
            set { Lines[0] = value; }
        }
        public override void CreateComponents()
        {
            base.CreateComponents();
            Lines[0].Name = OfTranslator("AngleBisector");
        }
    }
}
